Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Megascan #59

Merged
merged 5 commits into from
Jan 23, 2025
Merged

Megascan #59

merged 5 commits into from
Jan 23, 2025

Conversation

megascan
Copy link
Contributor

Hello! This branch has some nice changes the improve the following:

  • Code optimization
  • Generalized Hooks
  • Behaviour Enhancement

Additions:

  • base_glide:GetClosestAvailableSeat( pos ) (replaces base_glide:GetFreeSeat() allows to sit in the seat that is closest to the player)
  • Replaced player.GetAll() instances with player.Iterator() for enhanced performance.
  • CLIENT: hook.Run( "Glide_CanDrawHUD", vehicle ) @ return bool
  • CLIENT: hook.Run( "Glide_CanDrawHUDSeats", vehicle ) @ return bool
  • SERVER: hook.Run( "Glide_CanRagdollPlayer", ply, velocity, unragdollTime ) @ return bool, vector, float
  • SERVER: hook.Run( "Glide_PrePlayerRagdoll", ply )
  • SERVER: hook.Run( "Glide_PostPlayerRagdoll", ply )
  • SERVER: hook.Run( "Glide_PrePlayerUnRagdoll", ply )
  • SERVER: hook.Run( "Glide_PostPlayerUnRagdoll", ply )
  • SHARED: hook.Run( "Glide_CanLockVehicle", ply, vehicle) @ return bool
  • SHARED: hook.Run( "Glide_CanEnterLockedVehicle", ply, vehicle ) @ return bool
  • SHARED: hook.Run( "Glide_CanSwitchSeat", ply, seatIndex )
  • SHARED: hook.Run( "Glide_PreSwitchSeat", ply, seatIndex )
  • SHARED: hook.Run( "Glide_PostSwitchSeat", ply, seatIndex )

Thanks for making this great base!

@StyledStrike StyledStrike added the enhancement New feature or request label Jan 23, 2025
@StyledStrike
Copy link
Owner

StyledStrike commented Jan 23, 2025

Neat stuff, I'll deal with the linter issues (and to not use the continue keyword) later

@StyledStrike StyledStrike merged commit e19c634 into StyledStrike:main Jan 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants